//
//  YTSegmentControl.h
//  YiTuDriverClient
//
//  Created by 石少庸 on 2017/6/2.
//  Copyright © 2017年 Yitu. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YTSegmentedControlConfig;
@interface YTSegmentedControl : UIView

- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray<NSString *> *)titles configuration:(YTSegmentedControlConfig *)config;

/** 点击回调*/
@property (copy, nonatomic) void (^didSelectedItem)(NSInteger index);

@end


@interface YTSegmentedControlConfig : NSObject

@property (assign, nonatomic) CGFloat indecatorWidth;
@property (assign, nonatomic) CGFloat indecatorHeight;
@property (assign, nonatomic) CGFloat titleSize;

@end
